const joi = require('joi')


//用户名验证规则
const username = joi.string().min(1).max(25).pattern(/^[a-zA-Z0-9]+$/).required()
const password = joi.string().pattern(/^[a-zA-Z0-9]{6,12}$/).required()

exports.reg_login_schema = {
    body: {
        username,
        password
    }
}

